package com.itheima.dfs.template.impl;

import com.itheima.dfs.enums.DFSType;
import com.itheima.dfs.model.BaseFileModel;
import com.itheima.dfs.template.AbstractDfsTemplate;
import org.springframework.stereotype.Component;

import java.util.Collection;
import java.util.List;

@Component
public class OssFileTemplate extends AbstractDfsTemplate {
    ///oss的逻辑
    @Override
    public String uploadFile(BaseFileModel fileModel) {
        return null;
    }

    @Override
    public boolean delete(String fullPath) {
        return false;
    }

    @Override
    public List<byte[]> download(Collection<String> fullPath) {
        return null;
    }

    /**
     * 返回访问文件的服务器地址，不包含文件相对路径
     *
     * @return
     */
    @Override
    public String getAccessServerAddr() {
        return null;
    }

    @Override
    public DFSType support() {
        return DFSType.OSSDFS;
    }
}
